package ar.edu.itba.it.cg.grupo01.game.action;


import ar.edu.itba.it.cg.grupo01.game.sound.Pioneer;
import ar.edu.itba.it.cg.grupo01.game.sound.PioneerSoundSystem;

import com.jme.input.action.InputAction;
import com.jme.input.action.InputActionEvent;


public class HonkAction extends InputAction{


	private Pioneer audio;
	
    public HonkAction(Pioneer audioSystem) {
    	audio = audioSystem;
    }

    public void performAction(InputActionEvent evt) {
        if (evt.getTriggerPressed()) {
        	// Play da honk
        	audio.playEffect(PioneerSoundSystem.HONK, false);
        	System.out.println("now playing: the vuvuzela");
        }
    }

}
